import { hyRequest } from '@/service'
import type { result } from '@/service/type'

export const $package = {
  queryPage: (data: any) =>
    hyRequest.get<result>({
      url: '/asm/rate/cabinPrice/queryPage',
      params: data
    }),
  selectPage: (data: any) =>
    hyRequest.get<result>({
      url: '/asm/rate/cabinPolicy/selectPage',
      params: data
    }),
  updateStatus: (data: any) =>
    hyRequest.post<result>({
      url: '/asm/rate/cabinPolicy/updateStatus',
      headers: {
        ['Content-Type']: 'application/json;charset=UTF-8'
      },
      data
    })
}
